//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.example.erp.exception;

import com.example.erp.domain.DataResult;

public interface StatusDefinition {
    String getErrorCode();

    String getErrorReason();

    default DataResult<?> newDataResult() {
        return DataResult.faild(this.getErrorCode(), this.getErrorReason());
    }

    default DataResult<?> newDataResult(String msg) {
        return DataResult.faild(this.getErrorCode(), msg);
    }
}
